﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.SatinAlma
{
    public partial class _WBcust : XForm
    {
        public _WBcust()
        {
            InitializeComponent();
        }

        private void WBcust_Load(object sender, EventArgs e)
        {
            gvFN.Init("GetWBGelisleriCust");
            gvFN.AddDetailGrid(gvDetay, "FileName");

            gvDetay.MakeColumnInvisible("FileName");

            gvFN.AddColumn("Qty", typeof(decimal), "SUM(Child({FK}).Quantity)");

            gvDetay.AddSummary("Quantity");
            gvFN.AddSummary("Qty");

            gvFN.BestFitColumns();
            gvDetay.BestFitColumns();
        }
    }
}